<script>
	$(document).ready(function(){
		
		$('#kd_prov').change(function(){
			$('#kd_kabup').load(base_url+'prosedur/OptionKabup/'+$('#kd_prov').val());
		});
		
		$('#fakultas1').change(function(){
			$('#prodi1').load(base_url+'prosedur/getProdibyFakultas/'+$('#fakultas1').val());
		});
		
		$('#fakultas2').change(function(){
			$('#prodi2').load(base_url+'prosedur/getProdibyFakultas/'+$('#fakultas2').val());
		});
		
	});
</script>

<form id="form1" method="post" style="margin:10px;">
	<input type="hidden" name="id_pendaftaran" id="id_pendaftaran" value="<?=$id_pendaftaran?>">
	<div class="fitem" >
		<label style="width:100px">Periode / Gelombang </label>: 
		<select id="PMBPeriodID" name="PMBPeriodID" style="width:200px;">
			<?=$this->mdl_prosedur->OptionJadwalPMB(array('value'=>$PMBPeriodID));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">No Pendaftaran </label>:
		<input name="no_pendaftaran" size="15" required="true" value="<?=$no_pendaftaran?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Nama </label>:
		<input name="nama" size="30" required="true" value="<?=$nama?>">
	</div>	
	<div class="fitem" >
		<label style="width:100px">Provinsi </label>:
		<select id="kd_prov" name="kd_prov" style="width:200px;">
			<?=$this->mdl_prosedur->OptionKota(array('value'=>$kd_prov));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Kabupaten </label>:
		<select id="kd_kabup" name="kd_kabup" style="width:200px;">
			<?=$this->mdl_prosedur->OptionKabup(array('value'=>$kd_kabup, 'kd_prov'=>$kd_prov));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Alamat </label>:
		<input name="alamat" size="50" required="true" value="<?=$alamat?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Asal Sekolah </label>:
		<input name="asal_sekolah" size="50" required="true" value="<?=$asal_sekolah?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">No Telepon </label>:
		<input name="no_telp" size="50" required="true" value="<?=$no_telp?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Email </label>:
		<input name="email" size="50" required="true" value="<?=$email?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Pilihan 1 </label>:
		<select id="fakultas1" name="fakultas1" style="width:200px;">
			<?=$this->mdl_prosedur->OptionFakultas(array('value'=>$fakultas1));?>
		</select>
		<label> </label>
		<label style="width:50px">Prodi 1 </label>:
		<select id="prodi1" name="prodi1" style="width:200px;">
			<?=$this->mdl_prosedur->OptionProdi(array('value'=>$prodi1, 'kd_fakultas'=>$fakultas1));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Pilihan 2 </label>:
		<select id="fakultas2" name="fakultas2" style="width:200px;">
			<?=$this->mdl_prosedur->OptionFakultas(array('value'=>$fakultas2));?>
		</select>
		<label> </label>
		<label style="width:50px">Prodi 2 </label>:
		<select id="prodi2" name="prodi2" style="width:200px;">
			<?=$this->mdl_prosedur->OptionProdi(array('value'=>$prodi2, 'kd_fakultas'=>$fakultas2));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Nama Orang Tua </label>:
		<input name="nama_ortu" size="30" required="true" value="<?=$nama_ortu?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Alamat Orang Tua </label>:
		<input name="alamat_ortu" size="50" required="true" value="<?=$alamat_ortu?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Pekerjaan </label>:
		<input name="pekerjaan" size="50" required="true" value="<?=$pekerjaan?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Status </label>:
			<select id="status" name="status">
				<option value="Registrasi" <?= $status == 'Registrasi'?'selected ="selected"':''; ?>>Registrasi</option>
			</select></li>
	</div>
	
		
		
	
</form>
	

